import MyDialog from '@/components/MyDialog'
import { useState } from 'react'

export default function Home () {
  const [visible, setVisible] = useState(false)
  return (
    <div>
      数据展示 <button onClick={() => setVisible(!visible)}>toggle</button>
      <MyDialog visible={visible} title="xx11">
        <h3>content</h3>
      </MyDialog>
    </div>
  )
}
